#include <iostream>
#include <string>
#include <vector>
#include <fstream>
using namespace std;
int main()
{
    vector<string> words;
    string word;
    fstream in("getwords.cpp");
    while (in >> word)//每次读入一个单词
        words.push_back(word);
    for (int i = 0; i < words.size(); ++i)
    {
        cout << words[i] << endl;
    }
}